<?php
defined('BASEPATH') OR exit('No direct script access allowed');

if ( ! function_exists('create_uuid'))
{
    function create_uuid()
    {
        mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
        $charid = strtoupper(md5(uniqid(rand(), true)));
        $uuid = substr($charid, 0, 32);
        return $uuid;
    }
}

?>
